package com.glory.dgcpcpda.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author yi.zhang
 * @date 2019/12/10
 * @desc
 */
public class DcModelBean implements Parcelable {

    private String dcName;

    private String dcData;

    public String getDcName() {
        return dcName == null ? "" : String.valueOf(dcName);
    }

    public void setDcName(String dcName) {
        this.dcName = dcName;
    }

    public String getDcData() {
        return dcData == null ? "" : String.valueOf(dcData);
    }

    public void setDcData(String dcData) {
        this.dcData = dcData;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.dcName);
        dest.writeString(this.dcData);
    }

    public DcModelBean() {
    }

    protected DcModelBean(Parcel in) {
        this.dcName = in.readString();
        this.dcData = in.readString();
    }

    public static final Creator<DcModelBean> CREATOR = new Creator<DcModelBean>() {
        @Override
        public DcModelBean createFromParcel(Parcel source) {
            return new DcModelBean(source);
        }

        @Override
        public DcModelBean[] newArray(int size) {
            return new DcModelBean[size];
        }
    };
}
